window.console.log('发送请求了')
export default async function (...fun) {
  let {
    latitude,
    longitude
  } = JSON.parse(localStorage.getItem('guess'))
  fun[0]
    .get('https://elm.cangdu.org/shopping/restaurants', {
      params: {
        latitude,
        longitude,
        offset: 0,
        limit: 20,
        extras: ['activities'],
        restaurant_category_id: fun[2],
        restaurant_category_ids: fun[3],
        order_by: 4,
        delivery_mode: fun[4],
        support_ids: fun[5]
      }
    })
    .then(data => {
      fun[1](data.body)
    })
}